from XTestRunner import HTMLTestRunner
import unittest
if __name__ == '__main__':
    suite = unittest.defaultTestLoader.discover(start_dir='./',pattern='test*.py')
    with open('baogao.html','wb') as f:
        runner = HTMLTestRunner(stream=f,title='测试报告')
        runner.run(suite)